package com.xjzd.std.lambda.util;

public class MainTest {
    public static void main(String[] args) {
        boolean f = false;
        // LambdaUtil.isTure(f).throwMessage("123");
        // LambdaUtil.isTure(f).throwMessage("123");

        LambdaUtil.isTrueOrFalse(f).runBranch(
                () -> System.out.println(true),
                () -> System.out.println(false))
        ;

        LambdaUtil.isPresent("我是谁").presentOrElse(
                System.out::println,
                () -> System.out.println("null string")
        );
    }
}
